package com.mzj.saas.mservice.enterprise.entity;

import com.mzj.saas.commons.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 管理员操作记录表
 * 
 * @author shun
 * @createDate: 2021年6月3日 下午5:44:54
 * @version: 1.0
 *
 */
@Entity
@Table(name = "saas_enterprise_operation")
public class EnterpriseOperation extends IdEntity {
	/*
	 * 机构id
	 */
	@Column(name = "org_id", nullable = true)
	private Long orgId;
	/*
	 * 用户id
	 */
	@Column(name = "user_id", nullable = true)
	private String userId;
	/**
	 * 用户类型：0普通用户 1管理员
	 */
	@Column(name = "type", nullable = true)
	private Integer type;
	/*
	 * 操作功能:应用名称
	 */
	@Column(name = "operation_function", nullable = true)
	private String operationFunction;
	/*
	 * 操作类型:添加部门、登录后台
	 */
	@Column(name = "operation_type", nullable = true)
	private String operationType;
	/*
	 * 详细数据
	 */
	private String detail;
	/*
	 * 时间
	 */
	@Column(name = "operation_time", nullable = true)
	private Date operationTime;

	public Long getOrgId() {
		return orgId;
	}

	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getOperationFunction() {
		return operationFunction;
	}

	public void setOperationFunction(String operationFunction) {
		this.operationFunction = operationFunction;
	}

	public String getOperationType() {
		return operationType;
	}

	public void setOperationType(String operationType) {
		this.operationType = operationType;
	}
	
	@Column(columnDefinition="text")
	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public Date getOperationTime() {
		return operationTime;
	}

	public void setOperationTime(Date operationTime) {
		this.operationTime = operationTime;
	}

}
